package com.example.function.sys.model.one;


import lombok.Data;
import org.springframework.context.annotation.Lazy;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Description: <SysLogger vo>. <br>
 * <p>
 * generate time:2021-7-22 14:56:24
 *
 * @author hanqf
 * @version V1.0
 */
@Data
@Entity
@Table(name = "tbl_sys_logger", schema = "csms_db")
@Lazy(value = true)
public class SysLogger implements Serializable {
    private static final long serialVersionUID = 1L;

    /*
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "log_id")
    private Long id;


    /*
     * 客户端ID
     */
    @Column(name = "log_client_ip")
    private String logClientIp;


    /*
     * 请求url
     */
    @Column(name = "log_uri")
    private String logUri;


    /*
     * 终端请求方式,普通请求,ajax请求
     */
    @Column(name = "log_type")
    private String logType;


    /*
     * 请求方式method,post,get等
     */
    @Column(name = "log_method")
    private String logMethod;


    /*
     * 请求参数内容,转成json
     */
    @Column(name = "log_param_data")
    private String logParamData;


    /*
     * 请求流中的json
     */
    @Column(name = "log_request_json")
    private String logRequestJson;


    /*
     * 请求接口唯一session标识
     */
    @Column(name = "log_session_id")
    private String logSessionId;


    /*
     * 请求时间
     */
    @Column(name = "log_time")
    private java.util.Date logTime;


    /*
     * 接口返回时间
     */
    @Column(name = "log_returm_time")
    private String logReturmTime;


    /*
     * 接口返回数据json
     */
    @Column(name = "log_return_data")
    private String logReturnData;


    /*
     * 请求时httpStatusCode代码，如：200,400,404等
     */
    @Column(name = "log_http_status_code")
    private String logHttpStatusCode;


    /*
     * 请求耗时秒单位
     */
    @Column(name = "log_time_consuming")
    private Integer logTimeConsuming;


    /*
     * 操作内容
     */
    @Column(name = "log_desc")
    private String logDesc;


    /*
     * 用户名称
     */
    @Column(name = "log_user")
    private String logUser;


}



